#include <stdio.h>

int main()
{
    int arr_a[2][3] = {{1, 2, 3}, {4, 5, 6}};
    int arr_b[3][2] = {{0, 0}, {0, 0}, {0, 0}};
    for (int i = 0; i < 2; i++)
    {
        for (int a = 0; a < 3; a++)
        {
            arr_b[a][i] = arr_a[i][a];
        }
    }

    //以下为测试代码

    for (int i = 0; i < 3; i++)
    {
        for (int a = 0; a < 2; a++)
        {
            printf("%d ", arr_b[i][a]);
        }
    }

    return 0;
}